package com.xja.shoppingmall.filter.gatewayfactories;

import com.xja.shoppingmall.filter.HeaderTokenGatewayFilter;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @author CHENCHEN
 * @title
 * @createTime 2021-12-1214:41
 */
@Component
public class HeaderTokenGatewayFilterFactory extends AbstractGatewayFilterFactory {
    @Override
    public GatewayFilter apply(Object config) {
        return new HeaderTokenGatewayFilter();
    }
}
